import actionBuilder from '../utils/actionBuilder';

const action = actionBuilder({
  baseURL: '/user',
  timeout: 30 * 1000,
});

export function getUserByEmail({ email }: { email: string }) {
  return action({
    url: '/getUserByEmail',
    method: 'get',
    params: {
      email,
    },
  });
}
export function addUser({ email }: { email: string }) {
  return action({
    url: '/addUser',
    method: 'post',
    params: {
      email,
    },
  });
}
